add optimization to cmake build

This commit is contained in:
StapleButter 2017-06-04 18:20:49 +02:00
parent fa2db3826e
commit af5fb2e809
1 changed files with 2 additions and 0 deletions

View File

@ -43,4 +43,6 @@ link_libraries(${SDL2_LIBRARIES})
add_executable(${PROJECT_WX} ${SOURCES})
target_link_libraries(${PROJECT_WX})
set(CMAKE_BUILD_TYPE Release)
install(TARGETS ${PROJECT_WX} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)