Make DLLLauncherMain executables dependent on dll
[WebKit-https.git] / Source / JavaScriptCore / shell / CMakeLists.txt
1 set(JSC_SOURCES
2     ../jsc.cpp
3 )
4
5 set(JSC_LIBRARIES
6     ${CMAKE_DL_LIBS}
7     JavaScriptCore${DEBUG_SUFFIX}
8     WTF${DEBUG_SUFFIX}
9 )
10
11 if ("${JavaScriptCore_LIBRARY_TYPE}" MATCHES "STATIC")
12     add_definitions(-DSTATICALLY_LINKED_WITH_JavaScriptCore)
13 endif ()
14
15 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
16
17 WEBKIT_WRAP_SOURCELIST(${JSC_SOURCES})
18 include_directories(./ ${JavaScriptCore_INCLUDE_DIRECTORIES})
19 add_executable(jsc ${JSC_SOURCES})
20 target_link_libraries(jsc ${JSC_LIBRARIES})
21 set_target_properties(jsc PROPERTIES FOLDER "JavaScriptCore")
22
23 if (JSC_OUTPUT_NAME)
24     set_target_properties(jsc PROPERTIES OUTPUT_NAME ${JSC_OUTPUT_NAME})
25 endif ()
26
27 if (JSC_LINK_FLAGS)
28     ADD_TARGET_PROPERTIES(jsc LINK_FLAGS "${JSC_LINK_FLAGS}")
29 endif ()
30
31 if (SHOULD_INSTALL_JS_SHELL)
32     install(TARGETS jsc DESTINATION "${EXEC_INSTALL_DIR}")
33 endif ()
34
35 if (WIN32)
36     add_dependencies(jsc jscLib)
37 endif ()