atrooney-online-2/test/CMakeLists.txt
TrickyLeifa c9f52b7223 Ported to CMake, ...
* Ported the project to CMake
  * Android and Mac support dropped for the time
being.
  * Tests, BASS and Discord-RPC are now options
* Restructured and reformated the project.
  * Merged `include` and `src`
  * Renamed `resource` to `data`
  * Renamed various files
  * External libraries headers are no longer included in `src`
  * Replaced header guards with #pragma once
  * Multiple refactors (keywords, headers)
  * Added Qt6 compatibility
* Removed various unused functions and headers
* Reworked AOPacket
  * When content is passed to AOPacket, it should be ensured that the content is already decoded.
  * Encoding/decoding are now static methods.
* Fixed various memory leaks
* Removed animation code for AOImage
  * AOImage is always using static images
* Simplified ChatLogPiece
2024-05-15 00:04:16 +02:00

21 lines
672 B
CMake

find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Widgets REQUIRED)
find_package(Catch2 REQUIRED)
target_include_directories(test PRIVATE ../src)
target_link_directories(test PRIVATE ../lib)
target_link_libraries(test PRIVATE Qt${QT_VERSION_MAJOR}::Core Qt${QT_VERSION_MAJOR}::Gui Qt${QT_VERSION_MAJOR}::Widgets Catch2::Catch2)
add_executable(test
test_aopacket.cpp
test_caseloading.cpp
test_apng.cpp
../src/aopacket.h
../src/aopacket.cpp
)
if(AO_ENABLE_BASS)
target_compile_definitions(Attorney_Online PRIVATE AO_ENABLE_BASS)
target_link_libraries(Attorney_Online PRIVATE bass bassmidi bassopus)
target_sources(test PRIVATE test_bass.cpp)
endif()