2023-03-29 09:30:03 +08:00
|
|
|
cmake_minimum_required(VERSION 3.0.0)
|
2023-06-26 18:23:47 +08:00
|
|
|
project(injector VERSION 1.0.0)
|
2023-03-29 09:30:03 +08:00
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /D '_UNICODE' /D 'UNICODE'")
|
|
|
|
|
|
|
|
file(GLOB INJECT_CPP_FILES ${PROJECT_SOURCE_DIR}/*.cc ${PROJECT_SOURCE_DIR}/*.cpp)
|
|
|
|
|
2023-06-26 18:23:47 +08:00
|
|
|
add_executable (injector ${INJECT_CPP_FILES})
|
2023-03-29 09:30:03 +08:00
|
|
|
|
2023-06-26 18:23:47 +08:00
|
|
|
SET_TARGET_PROPERTIES(injector PROPERTIES LINKER_LANGUAGE C
|
2023-03-29 09:30:03 +08:00
|
|
|
ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin
|
|
|
|
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin
|
2023-06-26 18:23:47 +08:00
|
|
|
OUTPUT_NAME "injector"
|
2023-03-29 09:30:03 +08:00
|
|
|
PREFIX "")
|
|
|
|
|