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)
|
|
|
|
target_sources(novus-argcracker PRIVATE
|
|
|
|
src/main.cpp
|
|
|
|
src/tickcount.cpp)
|
|
|
|
target_link_libraries(novus-argcracker PRIVATE Qt6::Core Qt6::Core5Compat physis z)
|
|
|
|
target_include_directories(novus-argcracker PUBLIC include)
|
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)
|
2022-04-14 19:00:42 -04:00
|
|
|
endif()
|
|
|
|
|
2022-08-04 11:32:28 -04:00
|
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
2023-10-10 17:19:04 -04:00
|
|
|
target_compile_definitions(novus-argcracker PUBLIC LINUX)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install(TARGETS novus-argcracker ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
|