aboutsummaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-09-13 00:41:03 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-09-13 00:41:03 +0800
commit2836b3d1bdb32765950b8e3133a2452d8e7b98d2 (patch)
tree36109a163491ceb9abec4e39a2944509ca9466e7 /extensions
parentf5cd05e88b4068550b8ec244541c95050b1e6a5e (diff)
downloadSMELT-2836b3d1bdb32765950b8e3133a2452d8e7b98d2.tar.xz
cmake: generate position independent code, add missing include dirs.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/extensions/CMakeLists.txt b/extensions/CMakeLists.txt
index 8bc51e8..88fad1f 100644
--- a/extensions/CMakeLists.txt
+++ b/extensions/CMakeLists.txt
@@ -2,10 +2,9 @@ find_package(Freetype REQUIRED)
file (GLOB SMELTEXT_CPP_FILES "*.cpp")
-include_directories(
- ${FREETYPE_INCLUDE_DIRS}
-)
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
-add_library(smeltext STATIC ${SMELTEXT_CPP_FILES})
+include_directories(${PROJECT_SOURCE_DIR}/include/)
+include_directories(${FREETYPE_INCLUDE_DIRS})
-target_link_libraries(smeltext smelt)
+add_library(smeltext STATIC ${SMELTEXT_CPP_FILES})