2023-07-09 06:08:43 +03:00
|
|
|
# This file is a part of the UMSKT Project
|
|
|
|
#
|
2024-01-05 02:32:18 +02:00
|
|
|
# Copyleft (C) 2019-2024 UMSKT Contributors (et.al.)
|
2023-07-09 06:08:43 +03:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
# @FileCreated by Andrew on 05/30/2023
|
|
|
|
# @Maintainer Neo
|
|
|
|
|
2023-08-10 16:59:20 +03:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.12)
|
2024-02-22 03:37:02 +02:00
|
|
|
SET(PROJECT_NAME UMSKT)
|
|
|
|
PROJECT(${PROJECT_NAME})
|
2023-09-27 20:50:08 +03:00
|
|
|
|
2023-08-10 16:59:20 +03:00
|
|
|
SET(CMAKE_CXX_STANDARD 17)
|
2023-08-10 23:23:01 +03:00
|
|
|
SET(CMAKE_OSX_SYSROOT "macosx" CACHE PATH "macOS SDK path")
|
2024-01-25 06:04:36 +02:00
|
|
|
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
2023-09-27 20:50:08 +03:00
|
|
|
|
2024-02-22 03:37:02 +02:00
|
|
|
OPTION(BUILD_TESTING "Build testing binaries for CTest" OFF)
|
|
|
|
OPTION(BUILD_SHARED_LIBS "Build all dependant libraries as shared" OFF)
|
2023-08-10 16:59:20 +03:00
|
|
|
|
2024-02-22 03:37:02 +02:00
|
|
|
OPTION(UMSKT_BUILD_SHARED_LIB "Build libumskt.so/.dll/.dylib" ON)
|
|
|
|
OPTION(UMSKT_BUILD_STATIC_LIB "Build libumskt_static.a/.lib" ON)
|
|
|
|
OPTION(UMSKT_MUSL_STATIC "Enable fully static builds in a muslc environment (i.e. Alpine Linux)" OFF)
|
|
|
|
OPTION(UMSKT_DJGPP_COMPILE "Enable compilation and linking with DJGPP" OFF)
|
|
|
|
OPTION(UMSKT_MSVC_MSDOS_STUB "Specify a custom MS-DOS stub for a 32-bit MSVC compilation" OFF)
|
|
|
|
OPTION(UMSKT_MSVC_WINXP "Specify compile-time flag overrides for Windows XP" OFF)
|
2023-08-10 16:59:20 +03:00
|
|
|
|
2024-02-05 06:26:29 +02:00
|
|
|
IF (NOT MSVC)
|
2024-02-17 18:07:37 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS "-Os -fdata-sections -ffunction-sections -flto=auto -Wl,--gc-sections")
|
2024-02-05 06:26:29 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS_DEBUG "-g")
|
2024-02-22 03:37:02 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall -Wextra -pedantic")
|
2024-02-17 18:07:37 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g")
|
2024-02-22 03:37:02 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-Wall -Wextra -pedantic")
|
|
|
|
SET(CMAKE_CXX_FLAGS_RELEASE_INIT "-s")
|
|
|
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static -Wl,--gc-sections")
|
2024-01-05 02:32:18 +02:00
|
|
|
ENDIF ()
|
2023-07-25 09:53:42 +03:00
|
|
|
|
2024-02-22 03:37:02 +02:00
|
|
|
IF (UMSKT_DJGPP_COMPILE)
|
2023-08-10 16:59:20 +03:00
|
|
|
SET(CMAKE_SYSTEM_NAME MSDOS)
|
2023-08-10 23:54:33 +03:00
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
2024-02-22 03:37:02 +02:00
|
|
|
SET(UMSKT_BUILD_SHARED_LIB OFF)
|
|
|
|
SET(UMSKT_BUILD_STATIC_LIB OFF)
|
|
|
|
SET(CMAKE_POSITION_INDEPENDENT_CODE OFF)
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes -march=i386 -mtune=i386")
|
|
|
|
MESSAGE(STATUS "[UMSKT] DJGPP Build requested - Shared libraries forced OFF")
|
2024-01-05 02:32:18 +02:00
|
|
|
ENDIF ()
|
2023-08-10 16:59:20 +03:00
|
|
|
|
2024-01-05 02:32:18 +02:00
|
|
|
IF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
SET(BUILD_SHARED_LIBS ON)
|
2024-02-22 03:37:02 +02:00
|
|
|
MESSAGE(STATUS "[UMSKT] macOS Build requested - Shared libraries forced ON")
|
2024-01-05 02:32:18 +02:00
|
|
|
ENDIF ()
|
2023-07-25 09:53:42 +03:00
|
|
|
|
2023-08-10 16:49:04 +03:00
|
|
|
# if we're compiling with MSVC, respect the DEBUG compile option
|
2024-01-05 02:32:18 +02:00
|
|
|
IF (MSVC)
|
2023-08-10 16:59:20 +03:00
|
|
|
SET(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
2024-02-22 03:37:02 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS "/Os /LTCG /Gy /OPT:REF /OPT:ICF /EHsc")
|
2024-01-25 06:04:36 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS_RELEASE "/MT")
|
2024-02-05 06:26:29 +02:00
|
|
|
SET(CMAKE_CXX_FLAGS_DEBUG "/MTd /Z7")
|
|
|
|
SET(CMAKE_EXE_LINKER_FLAGS "/INCREMENTAL:NO /NODEFAULTLIB:MSVCRT /LTCG")
|
|
|
|
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG")
|
2023-08-10 16:59:20 +03:00
|
|
|
SET(CMAKE_ENABLE_EXPORTS ON)
|
|
|
|
SET(UMSKT_EXE_WINDOWS_EXTRA src/windows/umskt.rc)
|
|
|
|
SET(UMSKT_EXE_WINDOWS_DLL src/windows/dllmain.cpp)
|
2024-02-22 03:37:02 +02:00
|
|
|
IF (UMSKT_MSVC_WINXP)
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /U_WIN32_WINNT /DWINVER=0x0501 /D_WIN32_WINNT=0x0501")
|
|
|
|
ENDIF ()
|
2024-01-05 02:32:18 +02:00
|
|
|
ENDIF ()
|
2023-08-10 16:59:20 +03:00
|
|
|
|
2024-01-05 02:32:18 +02:00
|
|
|
IF (MUSL_STATIC)
|
2024-02-22 03:37:02 +02:00
|
|
|
MESSAGE(STATUS "[UMSKT] musl libc Build requested - Shared librares forced OFF")
|
2023-09-27 20:50:08 +03:00
|
|
|
SET(BUILD_SHARED_LIBS OFF)
|
|
|
|
|
2023-08-10 16:59:20 +03:00
|
|
|
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc -static-libstdc++")
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
|
2024-02-22 03:37:02 +02:00
|
|
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
2024-01-05 02:32:18 +02:00
|
|
|
ENDIF ()
|
2023-09-27 20:50:08 +03:00
|
|
|
|
2024-01-06 04:29:14 +02:00
|
|
|
# initialize cpm.CMake
|
|
|
|
FILE(
|
|
|
|
DOWNLOAD
|
|
|
|
https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.38.3/CPM.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake
|
|
|
|
EXPECTED_HASH SHA256=cc155ce02e7945e7b8967ddfaff0b050e958a723ef7aad3766d368940cb15494
|
|
|
|
)
|
|
|
|
INCLUDE(${CMAKE_CURRENT_BINARY_DIR}/cmake/CPM.cmake)
|
2024-02-22 03:37:02 +02:00
|
|
|
CPMUsePackageLock(${CMAKE_SOURCE_DIR}/package-lock.cmake)
|
2023-08-10 16:59:20 +03:00
|
|
|
|
|
|
|
# fetch cpm.CMake dependencies
|
|
|
|
# Include JSON development library
|
2023-06-01 20:55:36 +03:00
|
|
|
CPMAddPackage(
|
2023-08-10 16:59:20 +03:00
|
|
|
NAME nlohmann_json
|
|
|
|
GITHUB_REPOSITORY nlohmann/json
|
2024-01-25 06:04:36 +02:00
|
|
|
VERSION 3.11.3
|
2023-06-02 15:36:34 +03:00
|
|
|
)
|
2023-06-01 20:55:36 +03:00
|
|
|
|
2023-08-10 16:59:20 +03:00
|
|
|
# Include fmt development library
|
2023-07-09 06:08:43 +03:00
|
|
|
CPMAddPackage(
|
2023-08-10 16:59:20 +03:00
|
|
|
NAME fmt
|
|
|
|
GITHUB_REPOSITORY fmtlib/fmt
|
2024-01-25 06:04:36 +02:00
|
|
|
GIT_TAG 10.2.0
|
|
|
|
VERSION 10.2.0
|
2023-07-09 06:08:43 +03:00
|
|
|
)
|
|
|
|
|
2023-08-10 16:59:20 +03:00
|
|
|
# Include cmrc resource compiler
|
2023-07-09 06:08:43 +03:00
|
|
|
CPMAddPackage(
|
2023-08-10 16:59:20 +03:00
|
|
|
NAME cmrc
|
|
|
|
GITHUB_REPOSITORY vector-of-bool/cmrc
|
|
|
|
GIT_TAG 2.0.1
|
|
|
|
VERSION 2.0.1
|
2023-07-09 06:08:43 +03:00
|
|
|
)
|
|
|
|
|
2024-02-22 03:37:02 +02:00
|
|
|
# Include stdint128
|
|
|
|
CPMAddPackage(
|
|
|
|
NAME stdint128
|
|
|
|
GITHUB_REPOSITORY UMSKT/stdint128-cmake
|
|
|
|
GIT_TAG v1.0.0
|
|
|
|
VERSION 1.0.0
|
|
|
|
)
|
|
|
|
|
2023-08-10 16:59:20 +03:00
|
|
|
# Include Crypto++ development library
|
2024-02-05 06:26:29 +02:00
|
|
|
CPMAddPackage(
|
|
|
|
NAME cryptopp-cmake
|
2024-02-22 03:37:02 +02:00
|
|
|
GITHUB_REPOSITORY UMSKT/cryptopp-cmake
|
2024-02-05 06:26:29 +02:00
|
|
|
GIT_TAG CRYPTOPP_8_9_0
|
|
|
|
VERSION 8.9.0
|
|
|
|
OPTIONS "CRYPTOPP_BUILD_TESTING OFF"
|
|
|
|
)
|
2023-08-10 16:59:20 +03:00
|
|
|
|
|
|
|
### Resource compilation
|
2023-07-09 06:08:43 +03:00
|
|
|
CMRC_ADD_RESOURCE_LIBRARY(umskt-rc ALIAS umskt::rc NAMESPACE umskt keys.json)
|
2023-06-01 18:54:11 +03:00
|
|
|
|
2024-01-05 02:32:18 +02:00
|
|
|
SET(LIBUMSKT_PIDGEN2 src/libumskt/pidgen2/PIDGEN2.cpp)
|
|
|
|
SET(LIBUMSKT_PIDGEN3 src/libumskt/pidgen3/PIDGEN3.cpp src/libumskt/pidgen3/BINK1998.cpp src/libumskt/pidgen3/BINK2002.cpp)
|
|
|
|
SET(LIBUMSKT_CONFID src/libumskt/confid/confid.cpp src/libumskt/confid/polynomial.cpp src/libumskt/confid/residue.cpp src/libumskt/confid/divisor.cpp)
|
2024-02-17 18:07:37 +02:00
|
|
|
SET(LIBUMSKT_SRC src/libumskt/libumskt.cpp src/libumskt/init.cpp src/libumskt/pidgen.cpp ${LIBUMSKT_PIDGEN2} ${LIBUMSKT_PIDGEN3} ${LIBUMSKT_CONFID})
|
2024-02-22 03:37:02 +02:00
|
|
|
SET(UMSKT_CLI_SRC src/main.cpp src/cli/help.cpp src/cli/cli.cpp src/cli/confirmationid.cpp src/cli/options.cpp src/cli/pidgen.cpp)
|
|
|
|
SET(UMSKT_LINK_LIBS ${UMSKT_LINK_LIBS} fmt cryptopp stdint128)
|
2024-01-25 06:04:36 +02:00
|
|
|
|
|
|
|
IF (NOT MSVC)
|
|
|
|
SET(UMSKT_LINK_LIBS ${UMSKT_LINK_LIBS} umskt::rc)
|
|
|
|
SET(UMSKT_CLI_SRC ${UMSKT_CLI_SRC} src/rc.cpp)
|
|
|
|
ELSE()
|
|
|
|
SET(UMSKT_CLI_SRC ${UMSKT_CLI_SRC} src/windows/platform.cpp)
|
|
|
|
ENDIF()
|
2023-07-25 09:53:42 +03:00
|
|
|
|
2023-08-10 16:49:04 +03:00
|
|
|
#### Separate Build Path for emscripten
|
2023-08-10 16:59:20 +03:00
|
|
|
IF (EMSCRIPTEN)
|
2024-01-05 02:32:18 +02:00
|
|
|
ADD_EXECUTABLE(umskt ${UMSKT_CLI_SRC} ${LIBUMSKT_SRC})
|
2024-02-22 03:37:02 +02:00
|
|
|
TARGET_INCLUDE_DIRECTORIES(umskt PUBLIC ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR})
|
2024-02-05 06:26:29 +02:00
|
|
|
TARGET_LINK_DIRECTORIES(umskt PUBLIC ${UMSKT_LINK_DIRS})
|
2024-01-25 06:04:36 +02:00
|
|
|
TARGET_LINK_LIBRARIES(umskt PUBLIC ${UMSKT_LINK_LIBS})
|
2023-08-10 16:59:20 +03:00
|
|
|
SET(CMAKE_EXECUTABLE_SUFFIX ".html")
|
|
|
|
|
2024-02-17 18:07:37 +02:00
|
|
|
SET_TARGET_PROPERTIES(umskt PROPERTIES COMPILE_FLAGS "-sEXPORTED_RUNTIME_METHODS=ccall,cwrap")
|
|
|
|
SET_TARGET_PROPERTIES(umskt PROPERTIES LINK_FLAGS "-sWASM=1 -sEXPORT_ALL=1 -sEXPORTED_RUNTIME_METHODS=ccall,cwrap --no-entry")
|
2024-01-05 02:32:18 +02:00
|
|
|
ELSE ()
|
2024-01-25 06:04:36 +02:00
|
|
|
## umskt.so/.dll creation
|
2024-02-22 03:37:02 +02:00
|
|
|
IF (UMSKT_BUILD_SHARED_LIB)
|
|
|
|
ADD_LIBRARY(libumskt SHARED ${LIBUMSKT_SRC} ${UMSKT_EXE_WINDOWS_EXTRA} ${UMSKT_EXE_WINDOWS_DLL})
|
|
|
|
TARGET_INCLUDE_DIRECTORIES(libumskt PUBLIC ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR})
|
|
|
|
TARGET_LINK_DIRECTORIES(libumskt PUBLIC ${UMSKT_LINK_DIRS})
|
|
|
|
TARGET_LINK_LIBRARIES(libumskt PUBLIC ${UMSKT_LINK_LIBS})
|
|
|
|
IF (MSVC)
|
|
|
|
SET_TARGET_PROPERTIES(libumskt PROPERTIES OUTPUT_NAME libumskt)
|
|
|
|
ELSE ()
|
|
|
|
SET_TARGET_PROPERTIES(libumskt PROPERTIES OUTPUT_NAME umskt)
|
|
|
|
ENDIF ()
|
|
|
|
ENDIF()
|
2024-01-25 06:04:36 +02:00
|
|
|
|
|
|
|
## umskt_static.a/.lib creation
|
2024-02-22 03:37:02 +02:00
|
|
|
IF (UMSKT_BUILD_STATIC_LIB)
|
|
|
|
ADD_LIBRARY(libumskt_static ${LIBUMSKT_SRC} ${UMSKT_EXE_WINDOWS_EXTRA} ${UMSKT_EXE_WINDOWS_DLL})
|
|
|
|
TARGET_INCLUDE_DIRECTORIES(libumskt_static PUBLIC ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR})
|
|
|
|
TARGET_LINK_DIRECTORIES(libumskt_static PUBLIC ${UMSKT_LINK_DIRS})
|
|
|
|
TARGET_LINK_LIBRARIES(libumskt_static PUBLIC ${UMSKT_LINK_LIBS})
|
|
|
|
IF (MSVC)
|
|
|
|
SET_TARGET_PROPERTIES(libumskt_static PROPERTIES OUTPUT_NAME libumskt_static)
|
|
|
|
ELSE ()
|
|
|
|
SET_TARGET_PROPERTIES(libumskt_static PROPERTIES OUTPUT_NAME umskt_static)
|
|
|
|
ENDIF ()
|
|
|
|
ENDIF()
|
2023-08-10 16:49:04 +03:00
|
|
|
|
|
|
|
### UMSKT executable compilation
|
2024-02-22 03:37:02 +02:00
|
|
|
IF (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
|
|
|
### only build CLI if we're building UMSKT explicitly
|
|
|
|
IF (UMSKT_BUILD_STATIC_LIB)
|
|
|
|
## Link against the static lib
|
|
|
|
ADD_EXECUTABLE(umskt ${UMSKT_CLI_SRC} ${UMSKT_EXE_WINDOWS_EXTRA})
|
|
|
|
TARGET_LINK_LIBRARIES(umskt PUBLIC libumskt_static ${UMSKT_LINK_LIBS} nlohmann_json::nlohmann_json)
|
|
|
|
ELSEIF (UMSKT_BUILD_SHARED_LIB)
|
|
|
|
## Link against the dynamic lib
|
|
|
|
ADD_EXECUTABLE(umskt ${UMSKT_CLI_SRC} ${UMSKT_EXE_WINDOWS_EXTRA})
|
|
|
|
TARGET_LINK_LIBRARIES(umskt PUBLIC libumskt ${UMSKT_LINK_LIBS} nlohmann_json::nlohmann_json)
|
|
|
|
ELSE()
|
|
|
|
## Don't link against our output, do a full libumskt+cli compile
|
|
|
|
ADD_EXECUTABLE(umskt ${LIBUMSKT_SRC} ${UMSKT_CLI_SRC} ${UMSKT_EXE_WINDOWS_EXTRA})
|
|
|
|
TARGET_LINK_LIBRARIES(umskt PUBLIC ${UMSKT_LINK_LIBS} nlohmann_json::nlohmann_json)
|
2024-01-25 06:04:36 +02:00
|
|
|
ENDIF()
|
2023-08-10 16:49:04 +03:00
|
|
|
|
2024-02-22 03:37:02 +02:00
|
|
|
TARGET_INCLUDE_DIRECTORIES(umskt PUBLIC ${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR})
|
|
|
|
TARGET_LINK_DIRECTORIES(umskt PUBLIC ${UMSKT_LINK_DIRS})
|
|
|
|
IF (MSVC)
|
|
|
|
SET_PROPERTY(TARGET umskt APPEND PROPERTY COMPILE_FLAGS /DUMSKT_CLI_WINRC_EMBED_JSON)
|
|
|
|
IF (MSVC_MSDOS_STUB)
|
|
|
|
SET_PROPERTY(TARGET umskt APPEND PROPERTY LINK_FLAGS /STUB:${MSVC_MSDOS_STUB})
|
|
|
|
ENDIF()
|
|
|
|
ENDIF ()
|
|
|
|
|
|
|
|
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
|
|
INSTALL(TARGETS umskt DESTINATION bin)
|
|
|
|
ENDIF ()
|
2024-01-05 02:32:18 +02:00
|
|
|
ENDIF ()
|
2024-02-22 03:37:02 +02:00
|
|
|
|
|
|
|
### Strip the built binary
|
|
|
|
IF (${CMAKE_BUILD_TYPE} MATCHES "Release" AND NOT MSVC)
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET umskt POST_BUILD
|
|
|
|
COMMAND strip $<TARGET_FILE:umskt>
|
|
|
|
COMMENT "Stripping symbols for release"
|
|
|
|
)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF ()
|
|
|
|
|
|
|
|
|
|
|
|
#### Build Path for Unit Tests
|
|
|
|
IF ((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME OR UMSKT_BUILD_TESTING) AND BUILD_TESTING)
|
|
|
|
INCLUDE(CTest)
|
|
|
|
ENABLE_TESTING()
|
|
|
|
|
|
|
|
#include googletest unit testing library
|
|
|
|
CPMAddPackage(
|
|
|
|
NAME googletest
|
|
|
|
GITHUB_REPOSITORY google/googletest
|
|
|
|
VERSION 1.14.0
|
|
|
|
OPTIONS "INSTALL_GTEST OFF" "gtest_force_shared_crt"
|
|
|
|
)
|
|
|
|
|
|
|
|
MACRO(ADD_GTEST TEST)
|
|
|
|
ADD_EXECUTABLE(${TEST} ${ARGN})
|
|
|
|
TARGET_LINK_LIBRARIES(${TEST} gtest gmock gtest_main libumskt_static)
|
|
|
|
TARGET_COMPILE_FEATURES(${TEST} PRIVATE cxx_std_17)
|
|
|
|
SET_TARGET_PROPERTIES(${TEST} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests)
|
|
|
|
ADD_TEST(${TEST} tests/${TEST})
|
|
|
|
ENDMACRO()
|
|
|
|
|
|
|
|
ADD_GTEST(TEST_PIDGEN2 src/libumskt/pidgen2/PIDGEN2_unittest.cpp)
|
|
|
|
ADD_GTEST(TEST_PIDGEN3_BINK1998 src/libumskt/pidgen3/BINK1998_unittest.cpp)
|
|
|
|
ADD_GTEST(TEST_PIDGEN3_BINK2002 src/libumskt/pidgen3/BINK2002_unittest.cpp)
|
|
|
|
ADD_GTEST(TEST_CONFIRMATIONID src/libumskt/confid/confid_unittest.cpp)
|
|
|
|
|
2024-01-05 02:32:18 +02:00
|
|
|
ENDIF ()
|