summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
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()