Browse Source

Fix some potential issues with the _korlib CMake.

pull/190/head
Adam Johnson 5 years ago
parent
commit
b27153fb1f
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 10
      korlib/CMakeLists.txt

10
korlib/CMakeLists.txt

@ -1,5 +1,5 @@
project(korlib)
cmake_minimum_required(VERSION 3.0)
project(korlib)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
@ -12,7 +12,7 @@ find_package(OpenGL REQUIRED)
find_package(string_theory REQUIRED)
find_package(Vorbis REQUIRED)
if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES ".*Clang")
if(CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} MATCHES ".*Clang")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter ${CMAKE_CXX_FLAGS}")
endif()
@ -49,3 +49,9 @@ endif()
target_link_libraries(_korlib HSPlasma ${Ogg_LIBRARIES} ${OPENGL_LIBRARIES}
${PYTHON_LIBRARIES} ${STRING_THEORY_LIBRARIES}
${Vorbis_LIBRARIES})
install(TARGETS _korlib
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

Loading…
Cancel
Save