Clean up CMakeLists
This commit is contained in:
parent
baffb7c21c
commit
3d9dd14fd0
@ -69,17 +69,8 @@ target_include_directories(kekengine PUBLIC "dependencies/bullet3/src")
|
||||
target_include_directories(kekengine PUBLIC "dependencies/freetype/include")
|
||||
|
||||
target_link_libraries(kekengine PUBLIC microtar_static)
|
||||
|
||||
# Freetype
|
||||
# find_package(PkgConfig REQUIRED)
|
||||
#
|
||||
# pkg_check_modules(FREETYPE REQUIRED freetype2)
|
||||
# target_link_libraries(kekengine PUBLIC ${FREETYPE_LIBRARIES})
|
||||
# target_include_directories(kekengine PUBLIC ${FREETYPE_INCLUDE_DIRS})
|
||||
|
||||
#pkg_check_modules(BULLET REQUIRED bullet)
|
||||
#target_link_libraries(kekengine PUBLIC ${BULLET_LIBRARIES})
|
||||
#target_include_directories(kekengine PUBLIC ${BULLET_INCLUDE_DIRS})
|
||||
target_link_libraries(kekengine PUBLIC Bullet3Collision BulletDynamics BulletCollision LinearMath Bullet3Collision Bullet3Common Bullet3Dynamics Bullet3Geometry BulletInverseDynamics)
|
||||
target_link_libraries(kekengine PUBLIC freetype)
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(kekengine PUBLIC glfw GLEW GL)
|
||||
@ -114,14 +105,10 @@ endif()
|
||||
|
||||
add_library(kekengine_shared SHARED $<TARGET_OBJECTS:kekengine>)
|
||||
target_link_libraries(kekengine_shared PUBLIC kekengine)
|
||||
target_link_libraries(kekengine_shared PUBLIC Bullet3Collision BulletDynamics BulletCollision LinearMath Bullet3Collision Bullet3Common Bullet3Dynamics Bullet3Geometry BulletInverseDynamics)
|
||||
target_link_libraries(kekengine_shared PUBLIC freetype)
|
||||
set_target_properties(kekengine_shared PROPERTIES OUTPUT_NAME kekengine)
|
||||
|
||||
add_library(kekengine_static STATIC $<TARGET_OBJECTS:kekengine>)
|
||||
target_link_libraries(kekengine_static PUBLIC kekengine)
|
||||
target_link_libraries(kekengine_static PUBLIC BulletSoftBody BulletDynamics BulletCollision LinearMath Bullet3Collision Bullet3Common Bullet3Dynamics Bullet3Geometry BulletInverseDynamics)
|
||||
target_link_libraries(kekengine_static PUBLIC freetype)
|
||||
set_target_properties(kekengine_static PROPERTIES OUTPUT_NAME kekengine)
|
||||
|
||||
if(${KEKENGINE_BUILD_KEKGAME})
|
||||
|
Loading…
Reference in New Issue
Block a user