-
Notifications
You must be signed in to change notification settings - Fork 38
/
CMakeLists.txt
63 lines (57 loc) · 1.97 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
cmake_minimum_required(VERSION 3.0)
project(fontbm)
find_package(Freetype REQUIRED)
include_directories(${FREETYPE_INCLUDE_DIRS})
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -pedantic")
endif(NOT MSVC)
set(SOURCES
src/main.cpp
src/App.cpp
src/App.h
src/FontInfo.cpp
src/FontInfo.h
src/ProgramOptions.cpp
src/ProgramOptions.h
src/GlyphInfo.h
src/external/cxxopts.hpp
src/Config.h
src/external/json.hpp
src/HelpException.h
src/utils/extractFileName.h
src/utils/splitStrByDelim.h
src/utils/splitStrByDelim.cpp
src/utils/StringMaker.h
src/utils/getNumberLen.h
src/freeType/FtLibrary.h
src/freeType/FtFont.h
src/freeType/FtException.h
src/freeType/FtInclude.h
src/freeType/FtLibrary.cpp
src/external/utf8cpp/utf8.h
src/external/utf8cpp/utf8/core.h
src/external/utf8cpp/utf8/unchecked.h
src/external/utf8cpp/utf8/checked.h
src/external/tinyxml2/tinyxml2.cpp
src/external/tinyxml2/tinyxml2.h
src/external/maxRectsBinPack/MaxRectsBinPack.cpp
src/external/maxRectsBinPack/MaxRectsBinPack.h
src/external/maxRectsBinPack/Rect.h
src/external/lodepng/lodepng.h
src/external/lodepng/lodepng.cpp
)
add_definitions(-DLODEPNG_NO_COMPILE_DECODER)
add_executable(fontbm ${SOURCES})
target_link_libraries(fontbm ${COMMON_LIBRARIES} ${FREETYPE_LIBRARIES})
add_executable(unit_tests
src/external/catch.hpp
src/catchMain.cpp
src/ProgramOptions.cpp
src/utils/splitStrByDelim.cpp
src/utils/getNumberLenTest.cpp
src/utils/splitStrByDelimTest.cpp
src/utils/extractFileNameTest.cpp
src/utils/StringMaker.h
src/ProgramOptionsTest.cpp
)
target_link_libraries(unit_tests ${COMMON_LIBRARIES})