16 lines
500 B
CMake
16 lines
500 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(worldschatrevived)
|
|
|
|
add_executable(worldschatrevived main.cpp)
|
|
|
|
set_target_properties(worldschatrevived PROPERTIES LINK_SEARCH_START_STATIC 1)
|
|
set_target_properties(worldschatrevived PROPERTIES LINK_SEARCH_END_STATIC 1)
|
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
|
|
|
|
set_property(TARGET worldschatrevived PROPERTY CXX_STANDARD 11)
|
|
|
|
install(TARGETS worldschatrevived RUNTIME DESTINATION bin)
|