| 1 |
set(TARGET_NAME dci) |
| 2 |
set(BIN_NAME ${TARGET_NAME}${DTK_VERSION_MAJOR}) |
| 3 |
|
| 4 |
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) |
| 5 |
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core) |
| 6 |
add_definitions(-DDTK_NO_PROJECT) |
| 7 |
# start dci |
| 8 |
include(../../src/dci/dci.cmake) |
| 9 |
add_executable(${BIN_NAME} |
| 10 |
${dci_SRCS} |
| 11 |
main.cpp |
| 12 |
) |
| 13 |
target_link_libraries(${BIN_NAME} PRIVATE |
| 14 |
Qt${QT_VERSION_MAJOR}::Core |
| 15 |
Qt${QT_VERSION_MAJOR}::CorePrivate |
| 16 |
) |
| 17 |
target_include_directories(${BIN_NAME} PUBLIC |
| 18 |
../../include/ |
| 19 |
../../include/dci/ |
| 20 |
../../include/DtkCore/ |
| 21 |
../../include/base/ |
| 22 |
../../include/global/ |
| 23 |
) |
| 24 |
set_target_properties(${BIN_NAME} PROPERTIES OUTPUT_NAME ${TARGET_NAME}) |
| 25 |
#end dci |
| 26 |
|
| 27 |
install(TARGETS ${BIN_NAME} DESTINATION "${TOOL_INSTALL_DIR}") |