mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 07:00:43 +02:00
26 lines
570 B
CMake
26 lines
570 B
CMake
set(NAME FEXGetConfig)
|
|
set(SRCS Main.cpp)
|
|
|
|
add_executable(${NAME} ${SRCS})
|
|
|
|
list(APPEND LIBS Common JemallocDummy)
|
|
|
|
if (CMAKE_BUILD_TYPE MATCHES "RELEASE")
|
|
target_link_options(${NAME}
|
|
PRIVATE
|
|
"LINKER:--gc-sections"
|
|
"LINKER:--strip-all"
|
|
"LINKER:--as-needed"
|
|
)
|
|
endif()
|
|
|
|
install(TARGETS ${NAME}
|
|
RUNTIME
|
|
DESTINATION bin
|
|
COMPONENT runtime)
|
|
|
|
target_link_libraries(${NAME} PRIVATE ${LIBS})
|
|
|
|
target_include_directories(${NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Source/)
|
|
target_include_directories(${NAME} PRIVATE ${CMAKE_BINARY_DIR}/generated)
|