Files
Enzo/CMakeLists.txt
2025-06-19 01:27:19 +01:00

29 lines
596 B
CMake

cmake_minimum_required(VERSION 3.10)
# set vars
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# set exec names
set(AppExec enzoGui)
set(TestExec tests)
# setup project
project(enzo_project)
# qt
find_package(Qt6 REQUIRED COMPONENTS Core Widgets)
qt_standard_project_setup()
qt_add_executable(${AppExec}
src/gui/main.cpp
)
target_link_libraries(${AppExec} PRIVATE Qt6::Core Qt6::Widgets)
target_include_directories(${AppExec} PUBLIC src)
# tests
add_executable(${TestExec} tests/main-tests.cpp)
find_package(Catch2 3 REQUIRED)
target_link_libraries(${TestExec} PRIVATE Catch2::Catch2WithMain)