[submodule "deps/stb"]
path = deps/stb
url = https://github.com/nothings/stb
-[submodule "deps/freetype"]
- path = deps/freetype
- url = https://gitlab.freedesktop.org/freetype/freetype.git
set(CMAKE_BUILD_TYPE Debug)
endif()
+find_package(Freetype REQUIRED)
+
link_libraries(
pthread
m
${CMAKE_SOURCE_DIR}
)
-if (MSVC)
- add_compile_options(/W4 /WX)
-else()
- add_compile_options(-Wall -Wextra -Wpedantic -Werror)
-endif()
+add_compile_options(-Wall -Wextra -Wpedantic -Werror)
set(SOURCES_COMMON
array.c
GL
GLEW
glfw
- freetype
+ ${FREETYPE_LIBRARIES}
)
target_include_directories(Dragonblocks PUBLIC
- /usr/include/freetype2/
+ ${FREETYPE_INCLUDE_DIRS}
)
add_executable(DragonblocksServer