2023-08-06 08:48:11 -04:00
|
|
|
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2023-10-10 17:19:04 -04:00
|
|
|
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
|
2024-04-24 17:39:43 -04:00
|
|
|
Qt6::Core)
|
2022-04-14 19:00:42 -04:00
|
|
|
|
2023-08-06 08:48:11 -04:00
|
|
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
2023-10-10 17:19:04 -04:00
|
|
|
target_compile_definitions(novus-argcracker PUBLIC MACOS)
|
2023-08-06 08:48:11 -04:00
|
|
|
endif ()
|
2022-04-14 19:00:42 -04:00
|
|
|
|
2023-08-06 08:48:11 -04:00
|
|
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
2023-10-10 17:19:04 -04:00
|
|
|
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")
|
2023-10-10 17:19:04 -04:00
|
|
|
target_compile_definitions(novus-argcracker PUBLIC LINUX)
|
2023-12-10 06:51:33 -05:00
|
|
|
endif ()
|
2023-10-10 17:19:04 -04:00
|
|
|
|
2024-04-24 22:31:40 -04:00
|
|
|
install(TARGETS novus-argcracker ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
|
2024-04-25 19:23:08 -04:00
|
|
|
ecm_mark_nongui_executable(novus-argcracker)
|
|
|
|
|
2024-04-24 22:31:40 -04:00
|
|
|
if (WIN32)
|
2024-04-25 19:23:08 -04:00
|
|
|
set_target_properties(novus-argcracker PROPERTIES OUTPUT_NAME "ArgCracker")
|
2024-04-25 19:17:33 -04:00
|
|
|
|
2024-04-24 22:31:40 -04:00
|
|
|
install(FILES $<TARGET_RUNTIME_DLLS:novus-argcracker> DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
|
|
endif()
|