1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-22 20:17:46 +00:00
novus/argcracker/CMakeLists.txt
Joshua Goins 2844231996
Enable Windows and Linux packaging
The Windows version isn't super working yet, but this is a good step forward
2024-04-25 02:31:40 +00:00

30 lines
No EOL
878 B
CMake

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
add_executable(novus-argcracker)
target_sources(novus-argcracker
PRIVATE
src/main.cpp
src/tickcount.cpp)
target_link_libraries(novus-argcracker
PRIVATE
Physis::Physis
Qt6::Core)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
target_compile_definitions(novus-argcracker PUBLIC MACOS)
endif ()
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
target_compile_definitions(novus-argcracker PUBLIC WIN32)
endif ()
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
target_compile_definitions(novus-argcracker PUBLIC LINUX)
endif ()
install(TARGETS novus-argcracker ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
if (WIN32)
install(FILES $<TARGET_RUNTIME_DLLS:novus-argcracker> DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()