summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 19:55:28 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 19:55:28 +0800
commita1e538564d4b2a60be70a32ec39afdba249ce37d (patch)
tree98ff5e3531bf8c70369dc846c0d653e4ea878128 /CMakeLists.txt
parent982495a8ee6932f4a1586faf0c853ebaf951000f (diff)
Add support for Emscripten
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt24
1 files changed, 18 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 852c035..15a39d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,21 +6,33 @@ find_package(Qt5Core)
set(HDRS
${PROJECT_NAME}/product.hxx
${PROJECT_NAME}/catalog.hxx
- ${PROJECT_NAME}/ord.hxx
- ${PROJECT_NAME}/member.hxx
- ${PROJECT_NAME}/admin.hxx
${PROJECT_NAME}/client.hxx
)
+if (NOT EMSCRIPTEN)
+ set(HDRS
+ ${HDRS}
+ ${PROJECT_NAME}/ord.hxx
+ ${PROJECT_NAME}/member.hxx
+ ${PROJECT_NAME}/admin.hxx
+ )
+endif()
+
set(SRCS
${HDRS}
catalog.cxx
- ord.cxx
- member.cxx
- admin.cxx
client.cxx
)
+if (NOT EMSCRIPTEN)
+ set(SRCS
+ ${SRCS}
+ ord.cxx
+ member.cxx
+ admin.cxx
+ )
+endif()
+
if (EMSCRIPTEN OR IOS)
add_library(${PROJECT_NAME} STATIC ${SRCS})
else()