forked from um/kgg-dec
reformat cmake lists
This commit is contained in:
parent
a8c7bbe903
commit
b23e7d0302
@ -9,29 +9,30 @@ set(CMAKE_CXX_STANDARD 20)
|
|||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
add_executable(kgg-dec
|
add_executable(kgg-dec
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
src/common/base64.cpp
|
src/common/base64.cpp
|
||||||
src/infra/infra.cpp
|
src/infra/infra.cpp
|
||||||
src/tc_tea/tc_tea.cpp
|
src/tc_tea/tc_tea.cpp
|
||||||
src/qmc2/ekey.cpp
|
src/qmc2/ekey.cpp
|
||||||
src/qmc2/qmc2_factory.cpp
|
src/qmc2/qmc2_factory.cpp
|
||||||
src/qmc2/qmc2_map.cpp
|
src/qmc2/qmc2_map.cpp
|
||||||
src/qmc2/qmc2_rc4.cpp
|
src/qmc2/qmc2_rc4.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(kgg-dec
|
target_include_directories(kgg-dec
|
||||||
PRIVATE
|
PRIVATE
|
||||||
src/common
|
src/common
|
||||||
src/tc_tea
|
src/tc_tea
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(kgg-dec PRIVATE shell32 ole32)
|
target_link_libraries(kgg-dec PRIVATE shell32 ole32)
|
||||||
|
target_compile_definitions(kgg-dec PRIVATE NOMINMAX)
|
||||||
|
|
||||||
if (lto_supported)
|
if (lto_supported)
|
||||||
set_property(TARGET kgg-dec PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
set_property(TARGET kgg-dec PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||||
endif()
|
endif ()
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s -fdata-sections -ffunction-sections -flto -fmerge-all-constants -fno-exceptions -fno-rtti")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s -fdata-sections -ffunction-sections -flto -fmerge-all-constants -fno-exceptions -fno-rtti")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -s -Wl,--gc-sections -flto")
|
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -s -Wl,--gc-sections -flto")
|
||||||
endif()
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user