Browse Source

Update Linux build

Josh Engebretson 10 years ago
parent
commit
5038c06a91

+ 1 - 1
Source/AtomicEditor/CMakeLists.txt

@@ -66,7 +66,7 @@ if (APPLE)
     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
 
 
 elseif(LINUX)
 elseif(LINUX)
-    target_link_libraries(AtomicEditor curl nativefiledialog ${GTK3_LIBRARIES})
+    target_link_libraries(AtomicEditor NETCore NETScript curl nativefiledialog ${GTK3_LIBRARIES})
 
 
     # check for nodejs install
     # check for nodejs install
     # look for either 'node' or 'nodejs' ( debian uses both names )
     # look for either 'node' or 'nodejs' ( debian uses both names )

+ 2 - 0
Source/AtomicNET/NETCore/CMakeLists.txt

@@ -8,6 +8,8 @@ if (APPLE)
     file (GLOB_RECURSE PLATFORM_SOURCE_FILES Platforms/Unix/*.cpp Platforms/Unix/*.h)
     file (GLOB_RECURSE PLATFORM_SOURCE_FILES Platforms/Unix/*.cpp Platforms/Unix/*.h)
 elseif(MSVC)
 elseif(MSVC)
     file (GLOB_RECURSE PLATFORM_SOURCE_FILES Platforms/Windows/*.cpp Platforms/Windows/*.h)
     file (GLOB_RECURSE PLATFORM_SOURCE_FILES Platforms/Windows/*.cpp Platforms/Windows/*.h)
+elseif(LINUX)
+    file (GLOB_RECURSE PLATFORM_SOURCE_FILES Platforms/Unix/*.cpp Platforms/Unix/*.h)
 endif()
 endif()
 
 
 add_library(NETCore ${SOURCE_FILES} ${PLATFORM_SOURCE_FILES})
 add_library(NETCore ${SOURCE_FILES} ${PLATFORM_SOURCE_FILES})

+ 4 - 0
Source/ToolCore/CMakeLists.txt

@@ -21,6 +21,10 @@ add_library(ToolCore ${SOURCE_FILES})
 
 
 target_link_libraries(ToolCore Assimp Poco)
 target_link_libraries(ToolCore Assimp Poco)
 
 
+if (LINUX)
+    target_link_libraries(ToolCore NETCore NETScript)
+endif()
+
 GroupSources("Assets")
 GroupSources("Assets")
 GroupSources("AtomicNET")
 GroupSources("AtomicNET")
 GroupSources("Build")
 GroupSources("Build")