1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 12:37:45 +00:00
novus/apps/argcracker/CMakeLists.txt

34 lines
1,005 B
Text
Raw Normal View History

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
add_executable(novus-argcracker)
2023-12-10 06:51:33 -05:00
target_sources(novus-argcracker
PRIVATE
src/main.cpp
src/tickcount.cpp)
2023-12-09 21:51:57 -05:00
target_link_libraries(novus-argcracker
PRIVATE
Physis::Physis
Qt6::Core)
2022-04-14 19:00:42 -04:00
if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
target_compile_definitions(novus-argcracker PUBLIC MACOS)
endif ()
2022-04-14 19:00:42 -04:00
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
target_compile_definitions(novus-argcracker PUBLIC WIN32)
2023-12-10 06:51:33 -05:00
endif ()
2022-04-14 19:00:42 -04:00
2023-12-10 06:51:33 -05:00
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
target_compile_definitions(novus-argcracker PUBLIC LINUX)
2023-12-10 06:51:33 -05:00
endif ()
install(TARGETS novus-argcracker ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
ecm_mark_nongui_executable(novus-argcracker)
if (WIN32)
set_target_properties(novus-argcracker PROPERTIES OUTPUT_NAME "ArgCracker")
install(FILES $<TARGET_RUNTIME_DLLS:novus-argcracker> DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()