Skip to content

Commit

Permalink
Merge branch 'b-cmake' of github.com:gwaldron/osgearth into b-cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed May 6, 2024
2 parents f103e4d + b6c2dc8 commit 568bdd4
Showing 1 changed file with 15 additions and 45 deletions.
60 changes: 15 additions & 45 deletions src/osgEarthDrivers/script_engine_duktape/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,45 +1,15 @@
set(WITH_EXTERNAL_DUKTAPE FALSE CACHE BOOL "Use external Duktape instead of inlining it")

if(WITH_EXTERNAL_DUKTAPE)
find_package(Duktape)
endif()

if(NOT WITH_EXTERNAL_DUKTAPE OR DUKTAPE_FOUND)

if(WITH_EXTERNAL_DUKTAPE)

set(TARGET_H
DuktapeEngine
JSGeometry )

set(TARGET_SRC
Plugin.cpp
DuktapeEngine.cpp )

add_osgearth_library_as_plugin(
TARGET osgdb_osgearth_scriptengine_javascript
HEADERS ${TARGET_H}
SOURCES ${TARGET_SRC}
INCLUDE_DIRECTORIES ${DUKTAPE_INCLUDE_DIR}
LIBRARIES ${DUKTAPE_LIBRARIES} )

else()
set(TARGET_H
DuktapeEngine
JSGeometry
duktape.h
duk_config.h )

set(TARGET_SRC
Plugin.cpp
DuktapeEngine.cpp
duktape.c )

add_osgearth_library_as_plugin(
TARGET osgdb_osgearth_scriptengine_javascript
HEADERS ${TARGET_H}
SOURCES ${TARGET_SRC} )

endif()

endif()
set(TARGET_H
DuktapeEngine
JSGeometry
duktape.h
duk_config.h )

set(TARGET_SRC
Plugin.cpp
DuktapeEngine.cpp
duktape.c )

add_osgearth_library_as_plugin(
TARGET osgdb_osgearth_scriptengine_javascript
HEADERS ${TARGET_H}
SOURCES ${TARGET_SRC} )

0 comments on commit 568bdd4

Please sign in to comment.