|
|
@@ -1,17 +1,16 @@
|
|
|
include_directories (${CMAKE_SOURCE_DIR}/Source/ThirdParty/rapidjson/include
|
|
|
${CMAKE_SOURCE_DIR}/Source/ThirdParty
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/Vendor/nativefiledialog
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/Vendor/Poco/Foundation/include)
|
|
|
+ ${CMAKE_SOURCE_DIR}/Source/ThirdParty/Poco/Foundation/include
|
|
|
+ ${CMAKE_SOURCE_DIR}/Source/ThirdParty/nativefiledialog)
|
|
|
+
|
|
|
|
|
|
file (GLOB_RECURSE SOURCE_FILES Source/*.cpp Source/*.h)
|
|
|
|
|
|
add_definitions(-DPOCO_NO_AUTOMATIC_LIBS)
|
|
|
|
|
|
-set (SOURCE_FILES ${SOURCE_FILES} Vendor/nativefiledialog/nfd_common.c)
|
|
|
-
|
|
|
if (APPLE)
|
|
|
set (EXE_TYPE MACOSX_BUNDLE)
|
|
|
- set (SOURCE_FILES ${SOURCE_FILES} Source/Build/BuildIOSUtils.mm Vendor/nativefiledialog/nfd_cocoa.mm Vendor/nativefiledialog/nfd.h)
|
|
|
+ set (SOURCE_FILES ${SOURCE_FILES} Source/Build/BuildIOSUtils.mm)
|
|
|
|
|
|
#ICNS
|
|
|
set(MACOSX_BUNDLE_ICON_FILE Atomic.icns)
|
|
|
@@ -25,11 +24,9 @@ else()
|
|
|
set (SOURCE_FILES ${SOURCE_FILES} ${CMAKE_SOURCE_DIR}/CMake/Modules/Atomic.rc)
|
|
|
endif(APPLE)
|
|
|
|
|
|
-add_subdirectory(Vendor)
|
|
|
-
|
|
|
add_executable(AtomicEditor ${EXE_TYPE} ${SOURCE_FILES} ${ATOMIC_EDITOR_ICON})
|
|
|
|
|
|
-target_link_libraries(AtomicEditor ${ATOMIC_LINK_LIBRARIES} AtomicJS Poco)
|
|
|
+target_link_libraries(AtomicEditor ${ATOMIC_LINK_LIBRARIES} AtomicJS Poco nativefiledialog)
|
|
|
|
|
|
if (APPLE)
|
|
|
set (TARGET_PROPERTIES MACOSX_BUNDLE_INFO_PLIST MacOSXBundleInfo.plist.template)
|