Browse Source

Fix Linux build

Josh Engebretson 10 years ago
parent
commit
fa9b2df332
2 changed files with 7 additions and 1 deletions
  1. 1 1
      Source/AtomicEditorWork/CMakeLists.txt
  2. 6 0
      Source/ToolCore/CMakeLists.txt

+ 1 - 1
Source/AtomicEditorWork/CMakeLists.txt

@@ -45,7 +45,7 @@ endif(APPLE)
 
 add_executable(AtomicEditorWork ${EXE_TYPE} ${SOURCE_FILES} ${ATOMIC_EDITOR_ICON})
 
-target_link_libraries(AtomicEditorWork Poco nativefiledialog ToolCore AtomicJS ToolCoreJS ${ATOMIC_LINK_LIBRARIES})
+target_link_libraries(AtomicEditorWork ToolCore AtomicJS ToolCoreJS Poco nativefiledialog ${ATOMIC_LINK_LIBRARIES})
 
 if (APPLE)
     set (TARGET_PROPERTIES MACOSX_BUNDLE_INFO_PLIST MacOSXBundleInfo.plist.template)

+ 6 - 0
Source/ToolCore/CMakeLists.txt

@@ -14,3 +14,9 @@ file (GLOB_RECURSE SOURCE_FILES Source/*.cpp Source/*.h)
 file (GLOB_RECURSE SOURCE_FILES *.cpp *.h)
 
 add_library(ToolCore ${SOURCE_FILES})
+
+if (LINUX)
+
+target_link_libraries(ToolCore Poco)
+
+endif()