Phase 2 of image generation prep
[ric-app/ts.git] / src / ts_xapp / CMakeLists.txt
similarity index 53%
rename from src/messaging/CMakeLists.txt
rename to src/ts_xapp/CMakeLists.txt
index 507da84..06ea5f2 100644 (file)
@@ -1,10 +1,7 @@
-# vim: sw=4 ts=4 noet:
-#
 #==================================================================================
-#   Copyright (c) 2020 Nokia
-#   Copyright (c) 2020 AT&T Intellectual Property.
+#      Copyright (c) 2020 AT&T Intellectual Property.
 #
-#   Licensed under the Apache License, Version 2.0 (the "License");
+#   Licensed under the Apache License, Version 2.0 (the "License"),
 #   you may not use this file except in compliance with the License.
 #   You may obtain a copy of the License at
 #
 #==================================================================================
 #
 
+add_executable( ts_xapp ts_xapp.cpp )
+target_link_libraries( ts_xapp ricxfcpp;rmr_si;sdl;pthread )
 
-# For clarity: this generates object, not a lib as the CM command implies.
-#
-add_library( message_objects OBJECT
-       callback.cpp    
-       default_cb.cpp
-       message.cpp
-       messenger.cpp
+install( 
+    TARGETS ts_xapp
+    DESTINATION ${install_bin}
 )
 
-target_include_directories (message_objects PUBLIC
-       $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
-       $<INSTALL_INTERFACE:include>
-       PRIVATE src)
-
-# header files should go into .../include/xfcpp/
-if( DEV_PKG )
-       install( FILES
-               callback.hpp  
-               default_cb.hpp  
-               message.hpp  
-               messenger.hpp
-               msg_component.hpp
-               DESTINATION ${install_inc}
-       ) 
-endif()
-