work in progress
This commit is contained in:
34
designer-test/CMakeLists.txt
Normal file
34
designer-test/CMakeLists.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
cmake_minimum_required(VERSION 3.22.1)
|
||||
project(designer-test)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# Windows-only project
|
||||
if(NOT WIN32)
|
||||
message(FATAL_ERROR "designer-test is Windows-only")
|
||||
endif()
|
||||
|
||||
# Find nlohmann_json for test result output
|
||||
find_package(nlohmann_json CONFIG REQUIRED)
|
||||
|
||||
# Main test executable
|
||||
add_executable(designer-test
|
||||
src/main.cpp
|
||||
src/window_controller.cpp
|
||||
src/test_runner.cpp
|
||||
src/log_parser.cpp
|
||||
src/hierarchy_reader.cpp
|
||||
)
|
||||
|
||||
target_include_directories(designer-test PRIVATE src)
|
||||
|
||||
target_link_libraries(designer-test PRIVATE
|
||||
nlohmann_json::nlohmann_json
|
||||
)
|
||||
|
||||
# Link Windows libraries
|
||||
target_link_libraries(designer-test PRIVATE
|
||||
user32
|
||||
shell32
|
||||
)
|
||||
Reference in New Issue
Block a user