File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,13 @@ ENDIF(NOT MSVC)
12
12
set (CMAKE_INCLUDE_CURRENT_DIR ON )
13
13
set (CMAKE_AUTOMOC ON )
14
14
find_package (Qt5Core REQUIRED)
15
+ find_package (TastefulRPG QUIET )
15
16
16
- include_directories ("include" "lib/tmx/include" "lib/tmxrenderer/include" )
17
+ if (TastefulRPG_FOUND)
18
+ include_directories ("include" "lib/tmx/include" "lib/tmxrenderer/include" ${TastefulRPG_INCLUDE_DIR} )
19
+ else (TastefulRPG_FOUND)
20
+ include_directories ("include" "lib/tmx/include" "lib/tmxrenderer/include" )
21
+ endif (TastefulRPG_FOUND)
17
22
18
23
FILE (GLOB_RECURSE headers "include" *.h *.hpp)
19
24
@@ -40,7 +45,12 @@ add_subdirectory("lib")
40
45
41
46
add_executable (${target} ${sources} ${headers} )
42
47
43
- target_link_libraries (${target} tmx tmxrenderer)
48
+ if (TastefulRPG_FOUND)
49
+ target_link_libraries (${target} tmx tmxrenderer ${TastefulRPG_LIBRARY} )
50
+ else (TastefulRPG_FOUND)
51
+ target_link_libraries (${target} tmx tmxrenderer)
52
+ endif (TastefulRPG_FOUND)
53
+
44
54
qt5_use_modules(${target} Widgets Xml)
45
55
46
56
#copy data
You can’t perform that action at this time.
0 commit comments