psOff_public/tools/gamereport/CMakeLists.txt
2024-05-06 03:24:13 +03:00

30 lines
864 B
CMake

project(gamereport VERSION 0.0.1)
set(SRC
entry.cpp
)
set(GIT_FAIL_IF_NONZERO_EXIT FALSE)
set(GIT_WORKING_DIR ${PRJ_SRC_DIR})
set(PRE_CONFIGURE_FILE "git_ver.cpp.in")
set(POST_CONFIGURE_FILE "${CMAKE_CURRENT_BINARY_DIR}/git_ver.cpp")
include(git_watcher.cmake)
add_library(gamereport SHARED ${SRC} ${POST_CONFIGURE_FILE})
target_include_directories(gamereport PRIVATE
${CMAKE_SOURCE_DIR}
)
add_dependencies(gamereport third_party logging check_git core)
target_link_libraries(gamereport PUBLIC libboost_url SDL2 libssl libcrypto core.lib logging.lib config_emu.lib)
target_compile_definitions(gamereport PUBLIC BOOST_ALL_NO_LIB WIN32_LEAN_AND_MEAN)
set_target_properties(gamereport
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
)
install(TARGETS gamereport LIBRARY DESTINATION .)