mirror of
https://github.com/logos-co/logos-cpp-sdk.git
synced 2026-08-31 17:51:07 +00:00
* add tests for cpp-generator and sdk * add tests for new api, module_proxy and factories * add CI tests * add tests for a module definition
30 lines
741 B
CMake
30 lines
741 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(LogosCppGenerator)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
# Find Qt Core (QCoreApplication, QPluginLoader, QJson*)
|
|
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
|
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)
|
|
|
|
add_executable(logos-cpp-generator
|
|
main.cpp
|
|
generator_lib.cpp
|
|
)
|
|
|
|
target_link_libraries(logos-cpp-generator PRIVATE Qt${QT_VERSION_MAJOR}::Core)
|
|
|
|
target_include_directories(logos-cpp-generator PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../cpp
|
|
)
|
|
|
|
# Output directories
|
|
set_target_properties(logos-cpp-generator PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
|
|
)
|
|
|
|
|